package com.foryou.swkj.core.common;

/**
 * Created by DanteFung on 2017/7/18.
 */
public abstract interface CoreGlobe
{
    public static abstract interface TokenType
    {
        public static final String TOKENNAME = "eftoken";
    }

    public static abstract interface OperType
    {
        public static final String Operation = "00000";
        public static final String Merchants = "00001";
    }

    public static abstract interface ResultName
    {
        public static final String Index = "Index";
        public static final String Main = "Main";
    }

    public static abstract interface ArithmeticType
    {
        public static final String Equal = "=";
        public static final String NotEqual = "!=";
        public static final String Greater = ">";
        public static final String Less = "<";
        public static final String GreaterEqual = ">=";
        public static final String LessEqual = "<=";
        public static final String Like = "like";
    }

    public static abstract interface FileTypeMap
    {
        public static final String JPG = "FFD8FF";
        public static final String PNG = "89504E47";
        public static final String GIF = "47494638";
        public static final String BMP = "424D";
    }

    public static abstract interface ActionForward
    {
        public static final String LogIn = "Login";
        public static final String MainFrame = "Main";
        public static final String Failure = "Failure";
        public static final String ContentView = "ContentView";
        public static final String ContentEdit = "ContentEdit";
        public static final String Form = "Form";
        public static final String Index = "Index";
        public static final String Query = "Query";
        public static final String Password = "Password";
        public static final String ExportData = "ExportData";
    }

    public static abstract interface InvokeMethod
    {
        public static final String ServerStart = "ServerBegin";
        public static final String SearchServer = "Search";
        public static final String FileUpload = "FileUpload";
        public static final String FileView = "FileView";
    }

    public static abstract interface CacheLevel
    {
        public static final String SysLevel = "00";
        public static final String BusiLevel = "01";
    }

    public static abstract interface LogType
    {
        public static final String SysType = "00";
        public static final String BusiType = "01";
    }

    public static abstract interface LogLevel
    {
        public static final String Error = "00";
        public static final String Log = "01";
        public static final String Exception = "02";
    }

    public static abstract interface CheckStatus
    {
        public static final String Init = "00";
        public static final String Pass = "01";
        public static final String NotPass = "02";
    }

    public static abstract interface AuthStatus
    {
        public static final String Normal = "00";
        public static final String Freeze = "01";
    }

    public static abstract interface MenuLevel
    {
        public static final String Frame = "00";
        public static final String App = "01";
    }

    public static abstract interface MenuType
    {
        public static final String Sys = "00";
        public static final String Busi = "01";
    }

    public static abstract interface ParamType
    {
        public static final String Dynamic = "00";
        public static final String Static = "01";
    }

    public static abstract interface Status
    {
        public static final String Valid = "00";
        public static final String Invalid = "01";
    }

    public static abstract interface ResultCode
    {
        public static final String Success = "1";
        public static final String Error = "0";
        public static final String Login = "-1";
    }

    public static abstract interface SearchType
    {
        public static final String Lucene = "1";
        public static final String Solr = "2";
    }

    public static abstract interface DbType
    {
        public static final String MySql = "1";
        public static final String Oracle = "2";
        public static final String DB2 = "3";
        public static final String MSSQL = "4";
    }

    public static abstract interface RelationType
    {
        public static final String And = "AND";
        public static final String Or = "OR";
    }

    public static abstract interface SeparatorTag
    {
        public static final String Tip = "^";
        public static final String UnderLine = "_";
        public static final String Line = "-";
        public static final String Point = ".";
        public static final String VerticalLine = "|";
        public static final String Sigh = "!";
        public static final String And = "&";
        public static final String Equal = "=";
        public static final String Slash = "/";
        public static final String Blank = " ";
        public static final String Comma = ",";
    }

    public static abstract interface ActionType
    {
        public static final String Edit = "edit";
        public static final String View = "view";
    }

    public static abstract interface EditMode
    {
        public static final String Edit = "edit";
        public static final String View = "view";
    }

    public static abstract interface CookieObject
    {
        public static final String UserCookie = "userCookie";
        public static final String TokenCookie = "tokenCookie";
        public static final String RoleCookie = "roleCookie";
        public static final String SystemIds = "systemIds";
        public static final String SystemToken = "systemToken";
    }

    public static abstract interface SessionObject
    {
        public static final String SessionAdmin = "operator";
        public static final String SessionRole = "roles";
        public static final String RequestObject = "requestObj";
        public static final String SessionUser = "user";
        public static final String ActionType = "actionType";
        public static final String ActionObj = "actionObj";
        public static final String ActionPageObj = "actionPageObj";
        public static final String Msg = "msg";
        public static final String EditMode = "editMode";
    }

    public static abstract interface ExpectType
    {
        public static final String ExpectType = "Expect-Type";
        public static final String Json = "JSON";
        public static final String Html = "HTML";
    }

    public static abstract interface RequestType
    {
        public static final String RType = "requestType";
        public static final String Ajax = "ajax";
        public static final String NotAjax = "notAjax";
    }

    public static abstract interface YesOrNo
    {
        public static final String Yes = "1";
        public static final String No = "0";
    }

    public static abstract interface BaseInfo
    {
        public static final String StringGet = "get";
        public static final String StringSet = "set";
        public static final String PKSName = "pksName";
        public static final String PKSValue = "pksValue";
        public static final String PKSValue_ARRAY = "pksValue[]";
        public static final String MethodName = "methodName";
        public static final int MaxRows = 3000;
        public static final int BeginRow = 0;
        public static final int BeginPage = 0;
        public static final int PageSize = 10;
        public static final String VaildCode = "vaildCode";
        public static final String Msg = "msg";
        public static final String MenuIds = "menuIds";
        public static final String ActionIds = "actionIds";
        public static final String AuthCacheKey = "authCacheKey";
        public static final String Root = "root";
    }
}
